import request from '@/utils/request'

// 查询BOM特殊物料列表
export function listBomsm(query) {
  return request({
    url: '/bomcostestimation/basedocument/bomsm/list',
    method: 'get',
    params: query
  })
}

// 查询BOM特殊物料详细
export function getBomsm(id) {
  return request({
    url: '/bomcostestimation/basedocument/bomsm/' + id,
    method: 'get'
  })
}

// 新增BOM特殊物料
export function addBomsm(data) {
  return request({
    url: '/bomcostestimation/basedocument/bomsm',
    method: 'post',
    data: data
  })
}

// 修改BOM特殊物料
export function updateBomsm(data) {
  return request({
    url: '/bomcostestimation/basedocument/bomsm',
    method: 'put',
    data: data
  })
}

// 删除BOM特殊物料
export function delBomsm(id) {
  return request({
    url: '/bomcostestimation/basedocument/bomsm/' + id,
    method: 'delete'
  })
}

// 删除BOM特殊物料
export function getListByNumber(numbers) {
  return request({
    url: '/bomcostestimation/basedocument/bomsm/getNumbers/' + numbers,
    method: 'get'
  })
}
